// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios';
import qs from 'qs';
import { NoticeBar } from 'vant';





import { AddressEdit } from 'vant';
Vue.use(AddressEdit);
import { Area } from 'vant';
Vue.use(Area);
/*import AMap from 'vue-amap';
Vue.use(AMap);*/
//import BMap from 'BMap'
//Vue.use(BMap);
// 初始化vue-amap
//AMap.initAMapApiLoader({
//// 高德key
//key: 'c950b23728e5e1034be6ebdbd05145c5',
//// 插件集合 （插件按需引入）
//plugin: ['AMap.Geolocation']
//});


//import VueAMap from 'vue-amap';
//Vue.use(VueAMap);
//VueAMap.initAMapApiLoader({
//key: 'c950b23728e5e1034be6ebdbd05145c5',
//plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
//// 默认高德 sdk 版本为 1.4.4
//v: '1.4.4'
//});

import VueAMap from 'vue-amap';
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: 'c950b23728e5e1034be6ebdbd05145c5',
  plugin: ['AMap.Geolocation','AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});

//import AMap from 'vue-amap';
//Vue.use(AMap);
//// 初始化vue-amap
//AMap.initAMapApiLoader({
//// 高德key
//key: 'c950b23728e5e1034be6ebdbd05145c5',
//// 插件集合 （插件按需引入）
//plugin: ['AMap.Geolocation']
//});

import { Tabbar, TabbarItem } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Divider } from 'vant';
import { RadioGroup, Radio } from 'vant';
Vue.use(RadioGroup);
Vue.use(Radio);
import { Checkbox, CheckboxGroup } from 'vant';
Vue.use(Checkbox).use(CheckboxGroup);
Vue.use(Divider);
Vue.use(Swipe).use(SwipeItem);
import { Lazyload } from 'vant';
// options 为可选参数，无则不传
Vue.use(Lazyload);

import {PullRefresh,List} from 'vant'


Vue.use(PullRefresh).use(List)
//引用vant-ui
import { Button } from 'vant';
import { Cell, CellGroup } from 'vant';
import { Field } from 'vant';
import { Step, Steps } from 'vant';
import { sendRequest } from './utils/http'
import { sendFileRequest } from './utils/http'
import { Popup } from 'vant';
import { DatetimePicker } from 'vant';
import { Uploader } from 'vant';
import { NavBar } from 'vant';
import { Toast } from 'vant';
import { Grid, GridItem } from 'vant';
import { Picker } from 'vant';
import { Collapse, CollapseItem } from 'vant';
import { Tab, Tabs } from 'vant';
import { NumberKeyboard } from 'vant';
import { ContactCard, ContactList, ContactEdit } from 'vant';
import { Panel } from 'vant';
import { Icon } from 'vant';
import { Dialog } from 'vant';
import { Loading } from 'vant';
import { Overlay } from 'vant';

Vue.use(Overlay);
Vue.use(Loading);
Vue.use(Dialog);
Vue.use(Icon);
Vue.use(Panel);
Vue.use(ContactCard)
Vue.use(ContactList)
Vue.use(ContactEdit);
Vue.use(Collapse).use(CollapseItem);
Vue.use(Picker);
Vue.use(NumberKeyboard);
Vue.use(Tab).use(Tabs);
Vue.use(Grid).use(GridItem);
Vue.use(NoticeBar);
Vue.prototype.$sendRequest = sendRequest;
Vue.prototype.$sendFileRequest = sendFileRequest;
Vue.use(Toast);
Vue.use(DatetimePicker);
Vue.use(Popup);
Vue.use(Uploader)
Vue.use(Step).use(Steps);
Vue.use(Field);
Vue.use(Button);
Vue.use(Cell).use(CellGroup);
Vue.use(NavBar);
Vue.use(Tabbar).use(TabbarItem);
Vue.config.productionTip = false;
//import VueVideoPlayer from 'vue-video-player'
//import 'video.js/dist/video-js.css'
//
//Vue.use(VideoPlayer)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
